/**
 * 备注: 协议监控
 */
package com.motu.vertx.module.utility.commondata;

import com.motu.vertx.module.utility.toolset.TimeUtils;
import com.motu.vertx.module.utility.toolset.Tool;
import io.vertx.core.json.JsonObject;

public class ProtocolMonitor extends ProtocolMonitorModel {
    public ProtocolMonitor(JsonObject obj) {
        super(obj);
    }

    public boolean isValid() {
        return getEndTime() == 0 || TimeUtils.getCurTime() < getEndTime();
    }
}
